package com.zhiyou100.entity;

import lombok.*;

import java.io.Serializable;
import java.util.Set;

/**
 * 学生实体类
 *
 * @author yang
 * @version 1.0.0
 * @date 2020-09-19 15:10
 */
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Setter
@Getter
public class Student implements Serializable {
    private Integer sid;
    private String sname;
    private Set<Course> courseSet;

    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                '}';
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }
}
